package com.jubao.ejb.business.util;

public class BusinessConstant {

	// ----------business

	public static final String UserBusinessLocalJndiName = "UserBusinessImpl/local";

	public static final String UserBusinessRemoteJndiName = "UserBusinessImpl/remote";

	public static final String StoreBusinessLocalJndiName = "StoreBusinessImpl/local";

	public static final String StoreBusinessRemoteJndiName = "StoreBusinessImpl/remote";

	public static final String WebsiteBusinessLocalJndiName = "WebsiteBusinessImpl/local";

	public static final String WebsiteBusinessRemoteJndiName = "WebsiteBusinessImpl/remote";

	public static final String CategoryBusinessLocalJndiName = "CategoryBusinessImpl/local";

	public static final String CategoryBusinessRemoteJndiName = "CategoryBusinessImpl/remote";

	public static final String ContentBusinessLocalJndiName = "ProductBusinessImpl/local";

	public static final String ContentBusinessRemoteJndiName = "ProductBusinessImpl/remote";

	public static final String CouponBusinessLocalJndiName = "CouponBusinessImpl/local";

	public static final String CouponBusinessRemoteJndiName = "CouponBusinessImpl/remote";

	public static final String DataImportBusinessLocalJndiName = "DataImportBusinessImpl/local";

	public static final String DataImportBusinessRemoteJndiName = "DataImportBusinessImpl/remote";

	public enum RelationID {
		// User relations ------------------------------------------------
		USER_IS_FAVORITER_OF_STORE(100, "e.g. user is favoriter of store"), // -------------------------------------------------
		USER_IS_FAVORITER_OF_WEBSITE(101, "e.g. user is favoriter of website"), // -------------------------------------------------
		USER_IS_SERVANT_OF_STORE(110, "e.g. user is servant of store"), // -------------------------------------------------
		USER_IS_REFERER_OF_USER(120, "e.g. user is referer of user"), // -------------------------------------------------
		USER_IS_MEMBER_OF_CATEGORY(130, "e.g. user is member of category"), // -------------------------------------------------
		USER_IS_SERVANT_MEMBER_OF_CATEGORY(131, "e.g. user is servant member of category"), // -------------------------------------------------
		USER_IS_FAVORITER_OF_PRODUCT(140, "e.g. user is favoriter of product"), // -------------------------------------------------
		
		// --------------------------------------------------------------------------------------------------
		STORE_IS_SELLER_OF_PRODUCT(200, "store is seller of product"), // -------------------------------------------------
		STORE_IS_MEMBER_OF_CATEGORY(210, "store is member of category"), // -------------------------------------------------
		// --------------------------------------------------------------------------------------------------
		PRODUCT_IS_MEMBER_OF_CATEGORY(300, "e.g. product is member of category"), // -------------------------------------------------
		PRODUCT_IS_MEMBER_OF_BRAND(310, "e.g. product is member of brand"), // -------------------------------------------------
		// --------------------------------------------------------------------------------------------------
		BRAND_IS_BRANDER_OF_CATEGORY(400, "brand is brand of category"),  // -------------------------------------------------
		// --------------------------------------------------------------------------------------------------
		WEBSITE_IS_MEMBER_OF_CATEGORY(500, "website is member of category"),; // -------------------------------------------------
		// --------------------------------------------------------------------------------------------------

		Integer id;

		String desc;

		RelationID(Integer relationId, String desc) {
			this.id = relationId;
			this.desc = desc;
		}

		public String getDesc() {
			return desc;
		}

		public Integer getId() {
			return id;
		}
	}

	public enum CategoryID {
		// Constants category for store---------------------------------
		AREA_CATEGORY_TOP("70040402", "top category id of area,refer to category/area_category_all_china.xml"), // -------------------------------------------------
		AREA_UNKNOWN_CATEGORY("ar_unknown", "unknown category id of area,refer to category/area_category_all_china.xml"), // -------------------------------------------------
		BUSINESS_CATEGORY_TOP("biz01", "top category id of business"), // -------------------------------------------------
		BUSINESS_UNKNOWN_CATEGORY("bz_unknown", "unknown category id of business"), // -------------------------------------------------
		WEBSITE_CATEGORY_TOP("ws01", "top category id of website"), // -------------------------------------------------
		WEBSITE_UNKNOWN_CATEGORY("ws_unknown", "unknown category id of website"), // -------------------------------------------------

		// Constants category for product----------------------------
		PRODUCT_CATEGORY_TOP("91", "top category id of content"), // 产品分类top-------------------------------------------------
		PRODUCT_UNKNOWN_CATEGORY("pd_unknown", "unknown category id of content"), // 产品分类top-------------------------------------------------

		;

		String id;

		String desc;

		CategoryID(String categoryId, String desc) {
			this.id = categoryId;
			this.desc = desc;
		}

		public String getDesc() {
			return desc;
		}

		public String getId() {
			return id;
		}
	}

	public enum Status {
		// status for
		// coupon--------------------------------------------------------------------------------
		IS_EDITING(1001, "coupon is in editing status"), // 正在编辑----------------------------------
		IS_APPROVING(1002, "coupon is in approving status"), // 申请审批----------------------------------
		IS_APPROVE_FAIL(1003, "coupon is in approve fail status"), // 审批失败----------------------------------
		IS_APPROVE_SUCC(1004, "coupon is in online status"), // 审批通过----------------------------------

		;

		Integer id;

		String desc;

		Status(Integer statusId, String desc) {
			this.id = statusId;
			this.desc = desc;
		}

		public String getDesc() {
			return desc;
		}

		public Integer getId() {
			return id;
		}
	}

	public enum Type {
		// Type for Store------------------------------------------
		SITE_HORDE(1000, "store type  for horde"), // -------------------------------------------------
		SITE_STORE(1001, "store type  for retail store"), // -------------------------------------------------
		SITE_COMPANY(1002, "store type  for company of supplier/manufacture"), // -------------------------------------------------
		SITE_WEBSITE(1003, "store type  for website"), // -------------------------------------------------
		// Type for
		// Category---------------------------------------------------------
		CATEGORY_BRAND(2001, "品牌类别"), // -------------------------------------------------
		CATEGORY_PRODUCT(2002, "产品类别"), // -------------------------------------------------
		CATEGORY_AREA(2003, "地区类别"), // -------------------------------------------------
		CATEGORY_WEBSITE(2004, "网址分类"), // -------------------------------------------------
		CATEGORY_BUSINESS(2005, "主营业务分类"), // -------------------------------------------------
		// Types for Product
		CONTENT_PRODUCT(3001, "coupon type  for product"), // -------------------------------------------------
		CONTENT_COMPANY_PRODUCT_REQUEST(3002, "零批店要求供应商发布商品资料的请求，***现在没用"), // -------------------------------------------------
		CONTENT_MESSAGE(3003, "一般信息/其他信息"), // -------------------------------------------------
		CONTENT_MESSAGE_ESTATE(3004, "物业管理处发布的信息"), // -------------------------------------------------
		CONTENT_MESSAGE_STORE(3005, "商家发布的促销信息"), // -------------------------------------------------
		CONTENT_MESSAGE_FOR_PEOPLE(3006, "发布的便民信息"), // -------------------------------------------------
		CONTENT_COUPON(3020, "店铺的优惠券"), // -------------------------------------------------

		;

		Integer id;

		String desc;

		Type(Integer statusId, String desc) {
			this.id = statusId;
			this.desc = desc;
		}

		public String getDesc() {
			return desc;
		}

		public Integer getId() {
			return id;
		}
	}
}
